class Conversion{

    getDataFromStamp(Stamp) {
        let now = new Date(Stamp),
        y = now.getFullYear(),
        m = now.getMonth() + 1,
        d = now.getDate();
        return y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d) + " " + now.toTimeString().substring(0, 8);
    }
}

export default new Conversion();